//
//  LSZDetailsOfEachTableViewCell.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/9/25.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZDetailsOfEachTableViewCell.h"

@implementation LSZDetailsOfEachTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageViewHeader = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 60, 60)];
        [self.imageViewHeader.layer setMasksToBounds:YES];
        [self.imageViewHeader.layer setCornerRadius:self.imageViewHeader.frame.size.height/2];
        [self addSubview:self.imageViewHeader];
        
        self.labelName = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+10, CGRectGetMinY(self.imageViewHeader.frame), (ScreenWidth-CGRectGetMaxX(self.imageViewHeader.frame)-20)/2, 22)];
        self.labelName.textColor = titleColorLSZ;
        self.labelName.font = FONT_(14);
        [self addSubview:self.labelName];
        
        self.labelPosition = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.labelName.frame), CGRectGetMinY(self.labelName.frame), ScreenWidth-CGRectGetMaxX(self.labelName.frame), self.labelName.frame.size.height)];
        self.labelPosition.textAlignment = NSTextAlignmentCenter;
        self.labelPosition.backgroundColor = themeColor;
        self.labelPosition.textColor = [UIColor whiteColor];
        [self.labelPosition.layer setMasksToBounds:YES];
        [self.labelPosition.layer setCornerRadius:2];
        self.labelPosition.font = FONT_(14);
        [self addSubview:self.labelPosition];
        
        self.labelGender = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(self.labelName.frame), CGRectGetMaxY(self.labelName.frame), ScreenWidth-CGRectGetMinX(self.labelName.frame), 18)];
        self.labelGender.textColor = lightColor;
        self.labelGender.font = FONT_(13);
        [self addSubview:self.labelGender];
        
        
        self.labelPhone = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(self.labelName.frame), CGRectGetMaxY(self.labelGender.frame), ScreenWidth-CGRectGetMinX(self.labelName.frame), 18)];
        self.labelPhone.textColor = lightColor;
        self.labelPhone.font = FONT_(13);
        [self addSubview:self.labelPhone];

    }
    return self;
}

@end
